import { Entity, Column } from 'typeorm';
import { BaseEntity } from './baseEntity';

/**
 * @description: 标签表
 */

@Entity()
export class TLabel extends BaseEntity {
  // 标签名称
  @Column({ type: 'varchar', length: 50, name: 'title', comment: '标签名称' })
  title: string;

  // 标签描述
  @Column({
    type: 'varchar',
    length: 255,
    name: 'description',
    comment: '标签描述',
    nullable: true,
  })
  description: string;

  // 标签颜色
  @Column({ type: 'varchar', length: 24, name: 'color', comment: '标签颜色' })
  color: string;
}
